common selenium commands
remDr <- remoteDriver(remoteServerAddr = "localhost" , port = 9515L, browserName = "chrome")
1 driver.get("URL") To navigate to an application.
2 element.sendKeys("inputtext") Enter some text into an input box.
3 element.clear() Clear the contents from the input box.
4 select.deselectAll() Deselect all OPTIONs from the first SELECT on the page.
5 select.selectByVisibleText("some text") Select the OPTION with the input specified by the user.
6 driver.switchTo().window("windowName") Move the focus from one window to another.
7 driver.switchTo().frame("frameName") Swing from frame to frame.
8 driver.switchTo().alert() Helps in handling alerts.
9 driver.navigate().to("URL") Navigate to the URL.
10 driver.navigate().forward() To navigate forward.
11 driver.navigate().back() To navigate back.
12 driver.close() Closes the current browser associated with the driver.
13 driver.quit() Quits the driver and closes all the associated window of that driver.
14 driver.refresh() Refreshes the current page.